package com.lj.back.manage.scaffold.common.enums;

import com.lj.back.manage.scaffold.common.response.Response;
import com.lj.back.manage.scaffold.common.util.EnumValid;

/**
 * 状态枚举类
 * @author lv
 * @version 1.0.0
 */
public enum StatusEnum implements EnumValid, Response {
    /**
     * 成功
     */
    SUCCESS("1","成功"),

    /**
     * 失败
     */
    FAIL("2","失败")
    ;
    private final String code;

    private final String message;

    @Override
    public String getCode() {
        return this.code;
    }

    StatusEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
